Skip to content

AgendaEventRow: escape location description text#913

Open
danirabbit wants to merge 4 commits intomasterfrom
danirabbit/escape-marku-p
Open

AgendaEventRow: escape location description text#913
danirabbit wants to merge 4 commits intomasterfrom
danirabbit/escape-marku-p

Conversation

@danirabbit
Copy link
Member

Fixes markup when location descriptions have characters that need to be escaped for markup (like &)

@danirabbit danirabbit requested a review from a team February 3, 2026 23:05
if (location_from_component (event, out location_description, out location_uri)) {
if (location_uri != "") {
location_label.label = "<a href=\"%s\">%s</a>".printf (location_uri, location_description);
location_label.label = "<a href=\"%s\">%s</a>".printf (location_uri, Util.escape_markup (location_description));
Copy link
Collaborator

@leonardo-lemos leonardo-lemos Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use GLib.Markup.escape_text () here instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants